import request from "@/api/request";
import { CREATE_GROUP_API } from "@/api/api_constant";

export const createGroup = async (group_creator,group_name) => {
     const group_number = parseInt(Math.random() * 1000000000);
     console.log(group_name);
     return await request.post(CREATE_GROUP_API,{
         group_creator,
         group_name,
         group_number
     })
}
